function setupResizeEvent(self) {

  window.onresize = function() {
    self.halfX = window.innerWidth / 2;
    self.halfY = window.innerHeight / 2;

    self.width = window.innerWidth;
    self.height = window.innerHeight;

    self.camera.aspect = self.width / self.height;
    self.camera.updateProjectionMatrix();

    self.renderer.setSize( self.width, self.height );

    self.landscapeShaderMaterial.uniforms.scale.value = self.renderer.domElement.width / 1000;
  };
}
